<template>
  <div stlye="border:1px red solid; padding: 10px;">
    <p>测试组件</p>
    <slot>
      <p>默认内容slot</p>
    </slot>
  </div>
</template>

<script setup>
import { useSlots , useAttrs } from 'vue'

const attrss = useAttrs()
console.log(attrss)
</script>

<style scoped>

</style>